<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="/js/jquery-1.8.2.min.js"></script>
<link rel="stylesheet" href="/css/css.css">
<title>Insert title here</title>
</head>
<body>
<form action="list.do" method="post">
影视名称:<input type="text" name="jname"><br><br> 
投资水平:<input type="text" name="start">~<input type="text" name="end">万元
&nbsp;&nbsp;&nbsp;<input type="submit" value="搜索"><br>
</form><br><br>
<input type="button" value="添加" id="tj">
<table>
	<tr>
	<td>选择</td>
	<td>影视位名称</td>
	<td>题材</td>
	<td>投资下限</td>
	<td>投资上限</td>
	<td>影视介绍</td>
	<td>影视亮点</td>
	<td>上映时间</td>
	<td>操作</td>
	</tr>
	<c:forEach items="${page.list }" var="j">
		<tr>
			<td><input type="radio" value="${j.jid }"></td>
			<td>${j.jname}</td>
			<td>${j.sname3}</td>
			<td>${j.start}</td>
			<td>${j.end}</td>
			<td>${j.introduction}</td>
			<td>${j.lnames}</td>
			<td>${j.date}</td>
			<td><button class="cha" value="${j.jid }">查看详情</button></td>
		</tr>
	</c:forEach>
	<tr>
		<td colspan="9">
		<center>
			<a href="?curr=1">首页</a>&nbsp;&nbsp;&nbsp;
			<a href="?curr=${page.pageNum-1<page.pageSize?1:page.pageNum-1}">上一页>></a>&nbsp;
			<a href="?curr=${page.pageNum+1>page.pages?page.pages:page.pageNum+1}">下一页>></a>&nbsp;
			<a href="?curr=${page.pages}">尾页</a>&nbsp;&nbsp;&nbsp;<span>/共${page.pages}页</span>
			</center>
		</td>
	</tr>
</table>
</body>
<script type="text/javascript">
		$(".cha").css("background-color","pink");
		$(".cha").css("color","white");
		$(".cha").css("border-style","none");
		$(".cha").css("border-radius","10px");
		$("#tj").click(function(){
			location.href="toadd.do";
		})
		$(".cha").click(function(){
			var jid=$(this).val();
			location.href="showone.jsp?jid="+jid;
				})
</script>
</html>